const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  publicPath: "./",
  productionSourceMap: false,
  transpileDependencies: true,
  css: {
    loaderOptions: {
      less: {
        lessOptions: {
          modifyVars: {
            hack: 'true; @import "@/styles/ant.less"',
          },
          javascriptEnabled: true,
        },
      },
    },
  },
  configureWebpack: {
    module: {
      unknownContextCritical: false,
    },
    devServer: {
      headers: {
        "Access-Control-Allow-Origin": "*",
      },
      proxy: {
        "/api": {
          target: "http://47.94.211.99:9501",
          changeOrigin: true,
          pathRewrite: {
              '/api': ''
          },
          ws:false
        },
      },
      https: true,
    },
  },
});
